package entityDAOs;

import java.util.List;
import java.util.Set;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Departament;

/**
 * A data access object (DAO) providing persistence and search support for
 * Departament entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see entities.Departament
 * @author MyEclipse Persistence Tools
 */

public class DepartamentDAO extends BaseHibernateDAO<Departament, java.lang.Integer> {
	private static final Logger log = LoggerFactory
			.getLogger(DepartamentDAO.class);
	// property constants
	public static final String DEPARTMENT_NAME = "departmentName";
	public static final String LOCK_LEVEL = "lockLevel";


	public List<Departament> findByDepartmentName(Object departmentName) {
		return findByProperty(DEPARTMENT_NAME, departmentName);
	}

	public List<Departament> findByLockLevel(Object lockLevel) {
		return findByProperty(LOCK_LEVEL, lockLevel);
	}

}